package com.naizhuai.ui.entity.management;

import com.naizhuai.Model.db.user.PersonUserBean;

import java.io.Serializable;

/**
 * Created by code_han on 2018/6/4.
 */

public class PersonUserEditBean implements Serializable {

    private PersonUserBean personBean;
    private String beCompanyPowerCode;
    private String beCompanyPowerMsg;
    private String afCompanyPowerCode;
    private String afCompanyPowerMsg;
    private String beDepartPowerCode;
    private String beDepartPowerMsg;
    private String afDepartPowerCode;
    private String afDepartPowerMsg;

    public PersonUserEditBean() {
    }


    public PersonUserBean getPersonBean() {
        return personBean;
    }

    public void setPersonBean(PersonUserBean personBean) {
        this.personBean = personBean;
    }

    public String getBeCompanyPowerCode() {
        return beCompanyPowerCode;
    }

    public void setBeCompanyPowerCode(String beCompanyPowerCode) {
        this.beCompanyPowerCode = beCompanyPowerCode;
    }

    public String getBeCompanyPowerMsg() {
        return beCompanyPowerMsg;
    }

    public void setBeCompanyPowerMsg(String beCompanyPowerMsg) {
        this.beCompanyPowerMsg = beCompanyPowerMsg;
    }

    public String getAfCompanyPowerCode() {
        return afCompanyPowerCode;
    }

    public void setAfCompanyPowerCode(String afCompanyPowerCode) {
        this.afCompanyPowerCode = afCompanyPowerCode;
    }

    public String getAfCompanyPowerMsg() {
        return afCompanyPowerMsg;
    }

    public void setAfCompanyPowerMsg(String afCompanyPowerMsg) {
        this.afCompanyPowerMsg = afCompanyPowerMsg;
    }

    public String getBeDepartPowerCode() {
        return beDepartPowerCode;
    }

    public void setBeDepartPowerCode(String beDepartPowerCode) {
        this.beDepartPowerCode = beDepartPowerCode;
    }

    public String getBeDepartPowerMsg() {
        return beDepartPowerMsg;
    }

    public void setBeDepartPowerMsg(String beDepartPowerMsg) {
        this.beDepartPowerMsg = beDepartPowerMsg;
    }

    public String getAfDepartPowerCode() {
        return afDepartPowerCode;
    }

    public void setAfDepartPowerCode(String afDepartPowerCode) {
        this.afDepartPowerCode = afDepartPowerCode;
    }

    public String getAfDepartPowerMsg() {
        return afDepartPowerMsg;
    }

    public void setAfDepartPowerMsg(String afDepartPowerMsg) {
        this.afDepartPowerMsg = afDepartPowerMsg;
    }

    public void initCompanySave(){
        afCompanyPowerCode=beCompanyPowerCode;
        afCompanyPowerMsg=beCompanyPowerMsg;
    }

    public void initDepartmentSave(){
        afDepartPowerCode=beDepartPowerCode;
        afDepartPowerMsg=beDepartPowerMsg;
    }

    public boolean hasChangeCompanyPower(){
        return !beCompanyPowerCode.equalsIgnoreCase(afCompanyPowerCode);
    }

    public boolean hasChangeDepartmentPower(){
        return !beDepartPowerCode.equalsIgnoreCase(afDepartPowerCode);
    }
}
